<?php
/*
 * 调味料装饰器
 * @author    Leo
 * @filename CondimentDecorator.php
 * @Created  2015/10/4 1:56
 */

class CondimentDecorator extends  Beverage{

	public $beverage;

	protected  $name;

	public function __construct(Beverage $beverage){
		$this->beverage = $beverage;
		$this->name = $this->name.ucwords($this->beverage->getName());
	}

	public function cost(){
		return 0;
	}
}

